package com.ruiyian.bridge.project.service.impl;

import com.ruiyian.bridge.project.domain.DeviceInfo;
import com.ruiyian.bridge.project.domain.vo.DeviceNumSummaryVO;
import com.ruiyian.bridge.project.mapper.DeviceInfoMapper;
import com.ruiyian.bridge.project.service.DeviceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 设备信息
 * @Author: jeecg-boot
 * @Date:   2020-08-25
 * @Version: V1.0
 */
@Service
public class DeviceInfoServiceImpl implements DeviceInfoService {


	@Autowired
	private DeviceInfoMapper deviceMapper;


	@Override
	public DeviceInfo queryDeviceByAdd(String addr, String macaddr) {
		return deviceMapper.queryDeviceByAdd(addr,macaddr);
	}


	@Override
	public List<DeviceInfo> querySeachList(DeviceInfo device) {
		return deviceMapper.querySeachList( device) ;
	}


	@Override
	public List<DeviceNumSummaryVO> queryDeviceNum(Integer bridgeId) {
		return deviceMapper.queryDeviceNum(bridgeId);
	}


	@Override
	public void save(DeviceInfo device) {

	}

	@Override
	public void updateById(DeviceInfo device) {

	}

	@Override
	public void removeById(String id) {

	}

	@Override
	public DeviceInfo getById(String id) {
		return null;
	}
}
